﻿<Application 
    x:Class="OnlineVideos.App"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:Nav="clr-namespace:System.Windows.Navigation;assembly=Microsoft.Phone"
    xmlns:my="clr-namespace:System;assembly=mscorlib"
      xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:AdRotator="clr-namespace:AdRotator;assembly=AdRotator"
    mc:Ignorable="d">

    <!--Application Resources-->
    <Application.Resources>

        <Nav:UriMapper x:Key="UriMapper">
            <Nav:UriMapper.UriMappings>
                <Nav:UriMapping Uri="/SearchExtras" MappedUri="/MainPage.xaml"/>
            </Nav:UriMapper.UriMappings>
        </Nav:UriMapper>
        <Style TargetType="phone:PhoneApplicationFrame" x:Key="RootFrameStyle">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="phone:PhoneApplicationFrame">
                        <Border x:Name="ClientArea" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" >
                            <Grid>
                                <Popup x:Name="pop" Height="60" Width="480"  VerticalAlignment="Top" Opened="pop_Opened_1" IsOpen="False" HorizontalAlignment="Center">
                                    <Grid Background="{StaticResource PhoneAccentBrush}" Height="60" Width="480"  VerticalAlignment="Top" HorizontalAlignment="Center">
                                        <TextBlock Text="Successfully Shared To Blog" FontSize="20" Margin="15,25,0,0" ></TextBlock>
                                    </Grid>
                                </Popup>
                                <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
                                <Grid Height="80" Width="480"  VerticalAlignment="Bottom" HorizontalAlignment="Center">
                                    <AdRotator:AdRotatorControl x:Name="AdRotatorWin8" 
                                        AdHeight="80"
                                        AdWidth="480"
                                        VerticalAlignment="Bottom"  
                                        HorizontalAlignment="Center" SlidingAdDirection="Left" SlidingAdDisplaySeconds="20" SlidingAdHiddenSeconds="2"
                                        DefaultSettingsFileUri="/webslice;component/DefaultData/defaultAdSettings.xml"
                                        SettingsUrl="http://lartsoft.org/wp7ads/webtiledefaultAdSettings.xml"                
                                        />
                                </Grid>

                            </Grid>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="Languagetext" TargetType="TextBlock">
            <Setter Property="Text" Value="SubTitle: "/>

        </Style>
        <Style x:Key="AboutTitleStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="56"/>
            <Setter Property="FontFamily" Value="/Fonts/Simple Kind Of Girl.ttf#Simple Kind Of Girl"/>
        </Style>

        <Style x:Key="MainPanoramaTitlestyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="56"/>
            <Setter Property="FontFamily" Value="/Fonts/Simple Kind Of Girl.ttfSimple Kind Of GirlOpal"/>
            <Setter Property="FontWeight" Value="Normal"/>
        </Style>

        <Style x:Key="SongsPivottyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="30"/>
            <Setter Property="FontFamily" Value="Barrci"/>

        </Style>

        <Style x:Key="MainMenuItemTextStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="40"/>
            <Setter Property="FontFamily" Value="/Fonts/Simple Kind Of Girl.ttf#Simple Kind Of Girl"/>
            <Setter Property="Margin" Value="0,10,0,0"/>
        </Style>

        <Style x:Key="UpgradeMessageStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="38"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="Height" Value="240"/>
            <Setter Property="Width" Value="400"/>
        </Style>

        <Style x:Key="AboutUsMenuRowStyle" TargetType="StackPanel">
            <Setter Property="Orientation" Value="Horizontal"/>
            <Setter Property="Margin" Value="0,12,0,12"/>
        </Style>
    
        <Style x:Key="AboutUsMenuItemText" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="40"/>
            <Setter Property="FontFamily" Value="/Fonts/Simple Kind Of Girl.ttf#Simple Kind Of Girl"/>
            <Setter Property="Margin" Value="0,10,0,20"/>
        </Style>

        <Style x:Key="FormElementLabel" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="30"/>
            <Setter Property="FontFamily" Value="Calibri"/>
        </Style>

        <Style x:Key="RelatedAppCountStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="32"/>
            <Setter Property="IsHitTestVisible" Value="False"/>
            <Setter Property="Margin" Value="15,20,0,0"/>
        </Style>

        <Style x:Key="RelatedAppCountContainer" TargetType="Ellipse">
            <Setter Property="Canvas.Left" Value="3" />
            <Setter Property="Canvas.Top" Value="12" />
            <Setter Property="Width" Value="60" />
            <Setter Property="Height" Value="60" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="Fill" Value="#841717" />
            <Setter Property="Stroke" Value="Gray" />
            <Setter Property="StrokeThickness" Value="3" />
            <Setter Property="IsHitTestVisible" Value="False" />
        </Style>

        <Style x:Key="DetailPagePivotTitle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="25"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="FontWeight" Value="Normal"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="15,0,0,0"/>
        </Style>

        <Style x:Key="DetailPagePivotTitleImage" TargetType="Image">
            <Setter Property="Source" Value="/Images/Pivot/Title.png"></Setter>
            <Setter Property="Width" Value="36"></Setter>
            <Setter Property="Height" Value="36"></Setter>
            <Setter Property="Stretch" Value="Uniform"></Setter>
           <Setter Property="HorizontalAlignment" Value="Left"></Setter>
        </Style>

        <Style x:Key="logo" TargetType="Image">
            <Setter Property="Source" Value="Images/Panorama/Logo.png"></Setter>
        </Style>

        <Style x:Key="Title" TargetType="Image">
            <Setter Property="Source" Value="Images/Panorama/Title.png"></Setter>
        </Style>
        <Style x:Key="PivotTitle" TargetType="Image">
            <Setter Property="Source" Value="/Images/Pivot/Title.png"></Setter>
        </Style>


        <Style x:Key="tblkcategory" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="36"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="FontWeight" Value="Normal"/>

        </Style>

        <Style x:Key="AboutContactstyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="40"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="Height" Value="75"/>
        </Style>

        <Style x:Key="logoimg" TargetType="Image">
            <Setter Property="Margin" Value="10,0,0,0"></Setter>
        </Style>
        <Style x:Key="QuizReviewOptions" TargetType="TextBlock">
            <Setter Property="FontSize" Value="28"/>
            <Setter Property="Width" Value="410"></Setter>
            <Setter Property="Margin" Value="20,0,10,0"/>
            <Setter Property="TextWrapping" Value="Wrap"></Setter>
            <Setter Property="Foreground" Value="Gray"></Setter>
        </Style>

        <Style x:Key="QuizRadioButtonStyle" TargetType="RadioButton">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="VerticalAlignment" Value="Top"></Setter>
            <Setter Property="Margin" Value="2,0,0,0"/>
        </Style>
        <Style x:Key="QuizCheckBoxStyle" TargetType="CheckBox">
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="VerticalAlignment" Value="Top"></Setter>
            <Setter Property="Margin" Value="2,0,0,0"/>
        </Style>
        <my:String x:Key="TopRatedMsg">Create new web tile by tapping the '+' icon on the main menu left of here</my:String>
        <my:String x:Key="RecentdMsg">Create new web tile by tapping the '+' icon on the main menu left of here</my:String>
        <my:String x:Key="CheckDownloadTheme">false</my:String>
        <my:String x:Key="pivotitemtitle">tiles</my:String>
        <my:String x:Key="AudioApp">false</my:String>
        <my:String x:Key="DetailPage">false</my:String>
        <my:String x:Key="dtailsongs">true</my:String>
        <my:String x:Key="CategoryPvt">true,sites</my:String>
        <my:String x:Key="castpnm">false</my:String>
        <my:String x:Key="dtailchapter">false</my:String>
        <my:String x:Key="AdVisible">True</my:String>
        <my:String x:Key="songs">false</my:String>
        <my:String x:Key="movies">true</my:String>
        <my:String x:Key="ratingsongs">true,rate this file,rate this file</my:String>
        <my:String x:Key="dtailcast">false</my:String>
        <my:String x:Key="CricketDetails">false</my:String>
        <my:String x:Key="dtailcheat">false</my:String>
        <my:String x:Key="AudioPivotTitle">audio</my:String>
        <my:String x:Key="pvtitmSongsTitle">videos</my:String>
        <my:String x:Key="pvtTitleTwo"></my:String>
        <my:String x:Key="pvtFHStitlesOne">tiles</my:String>
        <my:String x:Key="pvtFHStitlesTwo">videos</my:String>
      
        <my:String x:Key="pvtFHStitlesThree">characters</my:String>
        <my:String x:Key="pvtFHStitlesFour">audio</my:String>
        <my:String x:Key="prmh">top shows</my:String>
        <my:String x:Key="productid">B99454C2-9B21-11E1-8FD2-58546188709B</my:String>
        <my:String x:Key="misuid">70264</my:String>
        <my:String x:Key="misappid">6e21c3a1-40ce-4cf0-b5d1-91956fcc53b0</my:String>
        <my:String x:Key="readMore">more downloads</my:String>
        <my:String x:Key="mln">web tiles</my:String>
        <my:String x:Key="VideoTitleName">true</my:String>
        <my:String x:Key="Message">true</my:String>
        <my:String x:Key="ContextMenu">Hide Series,Show Series,HIDE SHOWS</my:String>
        <my:String x:Key="ShowUpgradePage">false</my:String>
        <my:String x:Key="ShowonlinewebTile">true</my:String>
        <my:String x:Key="UpgradePageMessage"></my:String>
        <my:String x:Key="SubjectsTitle">quiz</my:String>
        <my:String x:Key="DetailPageName">Details</my:String>
        <my:String x:Key="FavoritePageName">WebTileFavorite</my:String>
        <my:String x:Key="HistoryPageName">WebTileHistory</my:String>
        <my:String x:Key="OnlinewebTilePageName">OnlineShare</my:String>
        <my:String x:Key="DownloadShow">false</my:String>
        <my:String x:Key="Primaryshowsfromblog">http://webtileshows.blogspot.com/feeds/posts/default?</my:String>
        <my:String x:Key="Primarypeoplefromblog"></my:String>
        <my:String x:Key="Quizstartmessage">You are about to take the quiz test.The quiz test contains multiple choice style questions.Complete each question by using radio buttons or check boxes then select Next button for next Question.When you are ready to begin, select the Start button below</my:String>
        <my:String x:Key="Quizdisplay">false</my:String>
        <my:String x:Key="QuizResultTitle">Quiz Result</my:String>
        <ImageBrush x:Name="bi" ImageSource="/Images/Panorama/Background.jpg"></ImageBrush>
        <my:Int32 x:Key="PeopleInsertLimit">5</my:Int32>
        <my:Int32 x:Key="ShowsInsertLimit">2</my:Int32>
        <my:String x:Key="RestoreShow">Show Story</my:String>
        <my:String x:Key="RegisterDownloadAgent">true</my:String>
        <my:String x:Key="DownloadPeople">false</my:String>
        <my:String x:Key="DownloadImagePageName">DownloadedImagePopup</my:String>
        <my:String x:Key="PlayDownloadedVideos">PlayDownloadedVideos</my:String>
        <my:String x:Key="MainPage">MainPage</my:String>
        <ImageBrush x:Name="bipivot" ImageSource="/Images/Pivot/Background.jpg" ></ImageBrush>
        <my:String x:Key="SettingsUrl">http://lartsoft.org/wp7ads/webtiledefaultAdSettings.xml</my:String>
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>
